#!/usr/bin/python3
# -*- coding: utf-8 -*-


import requests

# headers = {
#     'X-DY6ZUYp5-b': '-swegfe',
#     'Origin': 'https://www.pcoptimum.ca',
#     'Accept-Language': 'en-CA',
#     'Channel-Type': 'WEB',
#     'X-DY6ZUYp5-uniqueStateKey': 'Aw6yvSlpAQAAzMSEDu4Mg6GA-n46n6nCF32awab-TbsmQy4BJyQhI7R7EG4xAawUCfCuctHLwH8AAEB3AAAAAA==',
#     'Pragma': 'no-cache',
#     'x-devicefingerprint': 'Oec7e4W0t4PKQTkw5ys1551183500951',
#     'X-DY6ZUYp5-a': 'iY1KFtMpCIYSm4YrEpL-B_cb5_fRDzW7uYf7KFET5QrfZLFF3sL2uZLNBaDgekaheqsFaX5BukLymu02CfEFOIM4B_tdFT0aUp5tFAzd5YCjkBrwZTLrMUwNmGELf4d35BSgKTao36a3DW9Fq9OBWUiQ-s__R_W6FkpA31Y4eYLQhANrH1IjBWEwDXYLU0dFOfW4-ParBgU3--HyaILwMs5ku_YsBA1FFsE2T-MNGKW7MzrwmzclF2LwyApIGKa31Qq-DQLtE_ZcFff-Cfe-fz1RsQLEW4U_WpFAF9spuqWD5xaR-JqRMUwlWdK6xIBAHVBdUY5FgVO7MOmwuY52GvE-USa35EY--AtNWB6RCfWyF4Eru_n7GA3zMVGFZ9OF5FuVBw51554R0-DasBUwZY6-mPMNDk9pFBMhZ7pNLpLXMhaF0WpTZ2LQCW9TEV3dfJsFZkaY-IFRUzaNoCEWmpFQF-9EZI93ZUWtZ9WdWzTgWGm3mKarMum35k5fW45LDAXm-pQdZZ7TMUmFGtMQFkYYFFa3sk93CFLFDhLDFacdyRZNFQsa3VYam-DVGAD-G_GNy7M1mXwXIZFam4W4Ww5PfuZtWGLNeYnKNVY4BX0XDu14HVO3FzDdsJ7r-F73O1WQWk9d11L7MfEfLIB7s2GtFFYLFKTL37BTgR30DAngMVBjyQHANhOPyTpSMIYPmfNFH6DEyA0FSqa9eaHAZkLsepL1FwZ35_W9uFLrFWl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X-DY6ZUYp5-c': 'A0OevSlpAQAAuWB_YazaHw6YtNlDKTTslJgBc2OvjB3w6m57gjv9QL5fRs3gAawUCfCuctHLwH9gfTJdYD2ykA==',
#     'Content-Type': 'application/x-www-form-urlencoded',
#     'Accept': 'application/json, text/plain, */*',
#     'Cache-Control': 'no-cache',
#     'Referer': 'https://www.pcoptimum.ca/login',
#     'X-DY6ZUYp5-d': '0',
#     'Expires': 'Mon, 26 Jul 1997 05:00:00 GMT',
# }
#
# data = {
#   'username': 'euni00@gmail.com',
#   'password': 'un1deux2trois3',
#   'grant_type': 'password',
#   'client_id': '3d499ca2-90ca-4680-adc7-3ce32b41f320',
#   'client_secret': 'dbed547f-7f97-4dd3-b5c3-e985fbe2aef1',
#   'scope': 'authorized recognized'
# }
#
# response = requests.post('https://api.loblaw.ca/auth/oauth/v2/token', headers=headers, data=data)
# print(response.content.decode())

import requests

headers = {
    # 'Pragma': 'no-cache',
    # 'x-devicefingerprint': 'Oec7e4W0t4PKQTkw5ys1551183500951',
    # 'Accept-Language': 'en-CA',
    # 'Channel-Type': 'WEB',
    'Authorization': 'Bearer 86f8cee9-478d-489a-bd91-c260b0858eec',
    # 'Accept': 'application/json, text/plain, */*',
    # 'Cache-Control': 'no-cache',
    # 'Referer': 'https://www.pcoptimum.ca/offers',
    # 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
    # 'Origin': 'https://www.pcoptimum.ca',
    # 'Expires': 'Mon, 26 Jul 1997 05:00:00 GMT',
}

response = requests.get('https://api.loblaw.ca/loyalty/v1/households/1125218825/points', headers=headers)
print(response.content.decode())